﻿using Entitas.Unity;
using Script.Manager;
using UnityEngine;

namespace Script.Hybrid
{
    public class EnemyView : View, IPhysics
    {
        [SerializeField] private Rigidbody2D _rb2;

        public Rigidbody2D rb2 => _rb2;

        protected override void OnDestoryEntityHandler ()
        {
            base.OnDestoryEntityHandler ();

            PoolManager.Instance.Recycle (this, ActorTag.Enemy);
        }
    }
}